package router_all

import (
	Day1 "hello/chapter1"
	Day2 "hello/chapter2"
	Chapter "hello/chapter3"
	chapter4 "hello/chapter4"

	"github.com/gin-gonic/gin"
)

func Router(route *gin.Engine) {
	rout1 := route.Group("/chapter1")
	//路由组路由
	// rout1.Use(chapter4.Midware)
	rout2 := route.Group("/chapter2")
	rout3 := route.Group("/chapter3")
	rout4 := route.Group("/chapter4")

	Day1.Route(rout1)
	Day2.Route(rout2)
	Chapter.Route(rout3)
	chapter4.Route(rout4)
}
